CC=arm-linux-gcc
FLAGS=-Wall -g
OBJS=a9_led.cgi zigbee_fan.cgi env1.cgi a9_beep.cgi

run:$(OBJS)

$(OBJS):%.cgi:%.c
	$(CC) $(FLAGS) $< -o $@ -I/opt/4412/rootfs/usr/include -L/opt/4412/rootfs/lib/ -lcgic

install:
	$(CC) $(FLAGS) login.c -o login.cgi
	mv *.cgi ./out/
	sudo cp  ./out/*.cgi  /opt/4412/rootfs/boa/cgi-bin/

.PHONY:clean
clean:
	rm ./out/*.cgi
